<template>
	<view class="">
		<view class="agreement">
			<rich-text :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	// 注册协议
	export default{
		data(){
			return{
				content:''
			}
		},
		onLoad(){
			// 取出全局配置信息
			this.gConfig = uni.getStorageSync("gConfig");
			this.content=this.gConfig.common_agreement_userregister;
			// 下边一句，解决富文本编辑框rich-text中显示 图片自适应问题
			this.content=this.content.replace(/\<img/gi, '<img style="width:100%;height:auto" ')
		}
	}
</script>

<style scoped lang="scss">
	.agreement{padding:30rpx;font-size: $uni-font-size-base;line-height: 50rpx;}
</style>
